﻿#include <stdio.h>;
int main()
{
	int denominator,flag,i, n;
	double item,sum;

	printf("Enter n:");
	scanf_s("%d", &n);

	flag = 1;
	denominator = 1;
	sum = 0;
	for (i = 1; i <= n; i++) {
		item = flag * 1.0 / denominator;
		sum = sum + item;
		denominator = denominator + 1;
	 }
	printf("sum=%f\n", sum);
	printf("熊孝义\n");

	return 0;
}